import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter/material.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/TwoLabelItem.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/LeftLabelInputItem.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/SmsCodeItem.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/NavigationBar.dart';
import 'package:heyangkuaidai/DemonStrateModule/LoanApplySuccessPage.dart';
class LoanSendConfirmVSecretPage extends StatefulWidget {
  @override
  _LoanSendConfirmVSecretPageState createState() => _LoanSendConfirmVSecretPageState();
}

class _LoanSendConfirmVSecretPageState extends State<LoanSendConfirmVSecretPage> {
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 375, height: 667, allowFontScaling: true);
    return Scaffold(
      resizeToAvoidBottomInset: false,
      body: Column(
        children: [
          SizedBox(height: MediaQuery.of(context).padding.top,),
          NavigationBar(false,title: "放款确认",),
          Container(
              width: ScreenUtil.screenWidth,
              height: ScreenUtil.screenHeight-ScreenUtil().setWidth(249)-MediaQuery.of(context).padding.top,
              child: ListView(
                padding: EdgeInsets.only(top: 0),
                children: [

                  TwoLabelItem(title:"借款金额" ,hitText:"100,000元 " ,),
                  TwoLabelItem(title:"借款人姓名", hitText: "章*闯",),
                  TwoLabelItem(title:"身份证号", hitText: "430110********5648",),
                  TwoLabelItem(title:"年利率", hitText: "￥31,000,00",),
                  TwoLabelItem(title:"贷款利率", hitText: "4.65%",),
                  TwoLabelItem(title:"起止时间 ", hitText: "2021-05-15至2022-04-30",),
                  TwoLabelItem(title:"贷款账号", hitText: "6214161********165646",),
                  TwoLabelItem(title:"还款方式", hitText: "按月付息，到期还本",),
                  TwoLabelItem(title:"还款日", hitText: "每月21日",),
                  SizedBox(height: ScreenUtil().setWidth(10),),
                  LeftLabelInputItem(title: "V盾密码",hitText: "请输入V盾密码",),

                ],
              )
          ) ,

          SizedBox(height: ScreenUtil().setWidth(23),),
          InkWell(
            onTap: (){
               Navigator.push(
                  context,
                  new MaterialPageRoute(
                    builder: (context) => new LoanApplySuccessPage(),
                  ),
                );
            },
            child: Container(
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(4),
                  color:Color(0xff41A5EE),
                ),
                width: ScreenUtil().setWidth(347),
                height: ScreenUtil().setWidth(44),
                child:Center(
                  child: Text("确认放款",style: TextStyle(fontSize: ScreenUtil().setSp(17),color: Colors.white),textAlign: TextAlign.center,),
                )
            ) ,
          )
        ],
      ),
    );
  }
}
